﻿using Microsoft.Xna.Framework;
using ShevaEngine.Core.Modules.Graphics;
using ShevaEngine.Core.Modules.Graphics.Cameras;

namespace ShevaEngine.Core.Modules.Scenes
{
    /// <summary>
    /// Degree of freedom node.
    /// </summary>
    public class SceneNodeDOF : SceneNodeTransformation
    {
        /// <summary>Put matrix.</summary>
        public Matrix PutMatrix;
        /// <summary>InvPutMatrix.</summary>
        public Matrix InvPutMatrix;

        /// <summary>
        /// Constructor.
        /// </summary>
        public SceneNodeDOF()
            : base()
        {
            this.Transform = Matrix.Identity;
        }

        /// <summary>
        /// Override Add in rendering pipeline method.
        /// </summary>
        /// <param name="renderingPipeline"></param>
        /// <param name="worldMatrix"></param>
        public override bool AddInRenderingPipeline(RenderingPipeline renderingPipeline, Camera camera, Matrix worldMatrix)
        {
            //this.Transform = this.InvPutMatrix * Matrix.CreateRotationX(counter * MathHelper.Pi / 180) * this.PutMatrix;

            base.AddInRenderingPipeline(renderingPipeline, camera, worldMatrix);

            return false;
        }
    }
}
